Declarations of arrays
(Cont.)
Pascal C/C++
Arrays and functions
An Example
Pointer:
Dereferencing mechanism
Dereferencing pointers and the address operator
new() and
delete()
Some remarks
Example: allocate 2D array, initialise and delete it.
Example: allocate 2D array, initialise and delete it.
Example: allocate 2D array, initialise and delete it.
Structures
Declaration: Example (Step 1)
Structures
Declaration: Example (Step 2)
Structures
Declaration: Example (Step 3)
Structures
Declaration: Example (Step 4)
Structures
Initialisation Test
yourself
Structures and
Arrays
Initialisation
Structures
Example 1: Declaration
Structures and
Pointers
Declaration
Structures and
Pointers
Access to data
Structures and Pointers
Example 2: Access to data
Structures and
pointers
Example 3: Using two structures
Structures and
pointers
Example 3: Using two structures
Structures and
pointers
Example 3: Using two structures
Construct a
list
Example (Step 1)
Construct a list
Example (Step 2)
Construct a list
Example (Step 3)
Construct a list
Example (Step 4)
Structures and
Functions
Example Test yourself
Structures
(Cont.)
Pascal C/C++
Structures
(Cont.)
Pascal C/C++
Structures
(Cont.)
Pascal C/C++